package models

import (
	"time"
)

type Folder struct {
	Id               string          `orm:"pk"`
	RowId            string          `orm:"column(row_id)"`
	ProjectVersionId *ProjectVersion `orm:"column(project_version_id);rel(fk)"`
	ParentFolderId   *Folder         `orm:"column(parent_folder_id);rel(fk)"`
	Deleted          int32           `orm:"column(deleted)"`
	Name             string
	Type             string
	CreateTime       time.Time `orm:"column(create_time);type(datetime)"`
	CreateBy         string    `orm:"column(create_by)"`
	LastUpdateBy     string    `orm:"column(last_update_by)"`
	LastUpdateTime   time.Time `orm:"column(last_update_time);type(datetime)"`

	Folders []*Folder `orm:"reverse(many)"` // fk 的反向关系

	Flows []*Flow `orm:"reverse(many)"` // fk 的反向关系
}
